package cn.kgc.service;

import cn.kgc.pojo.Room;
import cn.kgc.pojo.RoomType;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
<<<<<<< HEAD
 * @author 李梦煊
 * @version 1.0
 * @date 2022/10/7 - 14:00
 */
public interface RoomService {

    //查询

    //查所有房间

    List<Room> getRoomByName(Integer currentPage, Integer limit, String typeName);

    //计算总页数
    int getTotalCount(String typeName);


    //新增房间
    int addRoom(Room room);

    //删除房间
    int deleRoomById(String roomId);

    //修改房间
    int updateRoom(Room room);


    RoomType findRoomById(Integer typeId);

    //查房间号
    List<Room> addOrders(String typeName);
    Room findRoomByNum(int roomNum);
}
